package cc.yugu.yhdw.common.constant;

public class CacheKey {

    /**
     * k terminalCode
     * v TerminalCode
     */
    public static final String K_CODE_V_TERMINAL_CODE = "1:%s";
    /**
     * k uid
     * v TerminalCode
     */
    public static final String K_ID_V_TERMINAL_CODE = "2:%s";

    public static final String K_ID_V_ITEM = "3:%s";

    /**
     * 终端请求 031000001 协议，terminal-server会终端当前登录的 服务信息 更新到缓存中
     * 注意： 要在终端每次心跳时候 touch这个缓存 终端下线清理
     * k 终端ID
     * v TerminalCode
     */
    public static final String K_ID_V_LOGIN_SERVER = "4:%s";

    public static final String K_ID_V_ITEM_CATEGORY = "5:%s";

    /**
     * k dictCategoryId
     * v dictItem.name list
     */
    public static final String K_ID_V_DICT_ITEM_NAME_LIST = "7:%d";

    public static final String K_ID_V_AGENT_HDW_SETTING = "8:%d";

    public static final String K_ID_V_LEAGUE_INFO = "9:%s";

    public static final String K_NANE_V_TABLE = "10:%s";


    public static final String K_ID_V_MOBILE_MESSAGE_TEMPLATE = "15:%d-%d";

    /**
     * k customerId
     * v customerInfo
     */
    public static final String K_ID_V_PASSPORT_INFO = "16:%d";

    public static final String K_ID_V_CABINET_INFO = "18:%s";


    public static final String K_ID_V_AGENT_INFO = "27:%d";

    public static final String K_ID_V_CABINET_STRATEGY_XML = "28:%d";

    /**
     * k userId
     * v userInfo
     */
    public static final String K_ID_V_USER_INFO = "32:%d";

    public static final String K_ID_V_SYSTEM_CONFIG_VALUE = "33:%s";

    public static final String K_SMS_MOBILE_V_ZERO = "34:%s";

    public static final String K_MOBILE_V_AUTH_CODE = "36:%s";


    public static final String K_ZERO_V_CUSTOMER_DEPOSIT_GIFT_LIST = "43:0";


    public static final String K_AGENT_ID_MODULE_ID_OLD_VERSION_V_TERMINAL_UPGRADE_PACK = "45:%d:%d:%s";

    public static final String K_AGENT_ID_V_SMS_ACCOUNT_LIST = "46:%d";

    public static final String K_ID_V_SMS_CONFIG_INFO = "47:%d";

    public static final String K_AGENT_ID_V_SMS_CONFIG_LIST = "48:%d";

    public static final String K_ID_V_SUPPLIER_INFO = "49:%d";

    /**
     * k YkdgAgentId
     * v YkdgAgentSetting
     */
    public static final String K_ID_V_YKDG_SETTING = "57:%d";




    public static final String K_ZERO_V_AD_IMAGE_LIST = "58:0";

    public static final String K_ID_V_YKDG_CUSTOMER_EXTRA = "60:%d";

    public static String key(String key, Object... args) {
        return String.format(key, args);
    }

    /**
     * k newsId
     * v newsInfo
     */
    public static final String K_ID_V_NEWS_INFO = "61:%d";

    /**
     * k agentId
     * v List<News>
     */
    public static final String K_AGENT_ID_V_NEWS_LIST = "62:%d:%d:%d";
    /**
     * k newsId
     * v news count
     */
    public static final String K_NEWS_ID_V_VIEW_COUNT = "64:%d";
    /**
     * k terminalStrategyId
     * v terminalStrategy
     */
    public static final String K_ID_V_TERMINAL_STRATEGY = "65:%s";
    /**
     * k id
     * v chargerPrice
     */
    public static final String K_AGENT_ID_TYPE_V_CHARGER_PRICE_LIST = "66:%d:%d";
    /**
     * k id
     * v chargerPrice
     */
    public static final String K_AGENT_ID_ORDERBY_V_CHARGER_RESUER_LIST = "67:%d:%s";
    /**
     * K id
     * v chargerProperty
     */
    public static final String K_ID_V_CABINET_PROPERTY_LIST = "68:%s";
    /**
     * k id
     * v charger
     */
    public static final String K_ID_V_CHARGER = "69:%s";
    /**
     * k communityId
     * v community
     */
    public static final String K_ID_V_COMMUNITY= "70:%d";
    public static final String K_ID_V_COMMUNITY_CUSTOMER_EXTRA = "71:%d";
    /**
     * k AgentId
     * v ChargerSetting
     */
    public static final String K_ID_V_CHARGER_SETTING = "72:%d";
    /**
     * k communityId
     * v communitySetting
     */
    public static final String K_ID_V_COMMUNITY_SETTING = "73:%d";
    public static final String K_AREA_V_COMMUNITY_LIST= "74:%d%d%d";
    public static final String K_AGENT_ID_V_CITY_ID_LIST= "75:%d";

}
